package com.mo.design.pattern.behavior.visitor;

public class VisitorMainTest {
    public static void main(String[] args) {
        Visitor v1 = new Visitor1();
        Visitor v2 = new Visitor2();
        View vi1 = new ConcreteView1();
        View vi2 = new ConcreteView2();
        vi1.view(v1);
        vi1.view(v2);
        vi2.view(v2);
    }
}
